<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            background-color: pink;

            animation: change 1s infinite alternate;
        }

        @keyframes change {
            0%{
                transform: translateX(0);
            }
            100%{
                transform: translateX(600px);
            }
        }


    </style>
</head>
<body>
    <div></div>
</body>
</html>